Python用語集 ジェネレータ
#Python_用語集
2つの用語
がある
ジェネレータ
https://docs.python.org/ja/3/glossary.html#term-generator
generator iterator を返す関数
yield!
通常はジェネレータ関数を指しますが、文脈によっては ジェネレータイテレータ を指す場合があります。
ジェネレータイテレータ
https://docs.python.org/ja/3/glossary.html#term-generator-iterator
generator 関数で生成されるオブジェクト
処理の一時中断、再開
ジェネレータ型(Python 組み込み型)